import 'package:flutter/material.dart';
import 'package:provide/provide.dart';
import '../../provider/counter.dart';

class MemberPage extends StatelessWidget {
  const MemberPage({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('会员中心')),
      body: Center(
        child: Provide<Counter>(
          builder: (context, child, counter) => Text('${counter.value}'),
        ),
      ),
    );
  }
}
